﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace Coldairarrow.Util
{
    public class ToolClass
    {

        public  bool CheckNumber(string text)
        {
            bool IsNumber = false;
            Regex regex = new Regex(@"^\d+$");

            if (regex.IsMatch(text))
            {
                IsNumber = true;
            }

            return IsNumber;
        }
    }

    //html展示类
    public class HtmlModel
    {
        public string name { get; set; }
        public string html { get; set; }
    }



    /// <summary>
    /// 状态恢复模板
    /// </summary>
    public class tblsd
    {
        public String Id { get; set; }
        /// <summary>
        /// 所属项目
        /// </summary>
        public String SPAREFIELD10 { get; set; }

        /// <summary>
        /// 工程名称
        /// </summary>
        public String Name { get; set; }

        /// <summary>
        /// 工程类型
        /// </summary>
        public String SPAREFIELD3 { get; set; }




        /// <summary>
        /// 工程状态
        /// </summary>

        public int state { get; set; }

    }


    public class One
    {
        public string Id { get; set; }
        public string DATA0 { get; set; }
        public int flag { get; set; }
        public List<Two> TwoList { get; set; }
        public int Rows { get; set; }
    }

    public class Two
    {
        public string Id { get; set; }
        public string DATA1 { get; set; }
        public string DATA2 { get; set; }
        public string DATA3 { get; set; }
        public string DATA4 { get; set; }
        public string DATA5 { get; set; }
        public string DATA6 { get; set; }
        public string DATA7 { get; set; }
        public string DATA8 { get; set; }
        public string DATA9 { get; set; }
        public string DATA10 { get; set; }
        public string DATA11 { get; set; }
        public string DATA12 { get; set; }
        public string DATA13 { get; set; }
        public string DATA14 { get; set; }
        public string DATA15 { get; set; }
        public string DATA16 { get; set; }
        public int flag { get; set; }
        public int Rows { get; set; }
        public List<Three> ThreeList { get; set; }
    }
    public class Three
    {
        public string Id { get; set; }
        public string DATA2 { get; set; }
        public string DATA3 { get; set; }
        public string DATA4 { get; set; }
        public string DATA5 { get; set; }
        public string DATA6 { get; set; }
        public string DATA7 { get; set; }
        public string DATA8 { get; set; }
        public string DATA9 { get; set; }
        public string DATA10 { get; set; }
        public string DATA11 { get; set; }
        public string DATA12 { get; set; }
        public string DATA13 { get; set; }
        public string DATA14 { get; set; }
        public string DATA15 { get; set; }
        public string DATA16 { get; set; }
        public string DATA23 { get; set; }//概算值校验标识
        public string DATA24 { get; set; }//结算值校验标识
        public string prjviewid { get; set; }
        public int flag { get; set; }

    }

    /// <summary>
    /// Excel和json文件上传模型
    /// </summary>
    public class FileModel
    {
        public string filetype { get; set; }
        public string fileversion { get; set; }
        public string filename { get; set; }
        public string Excel { get; set; }
        public string Json { get; set; }
        public int MainType { get; set; }//1主网，2配网，3技改，4检修

    }


}
